package com.dream.common.dao.base;




import java.util.List;

public interface CommonDao < T , PK >
{
	
	public T save ( T transientInstance );
	
	public T saveHasReturn ( T transientInstance );
	
	public T merge ( T persistentInstance );
	
	public void delete ( T persistentInstance );
	
	public void delById ( PK id );
	
	public void deleteById ( PK id );
	
	public void delByIds ( PK [ ] ids );
	
	public T findById ( PK id );
	
	public List< T > findAll ( );
	
	public List< T > findAll ( int maxResults );
}
